package com.common.www.controller.district;


import org.springframework.boot.base.jpa.service.IBaseService;
import com.common.www.bean.entity.district.ProvinceCity;
import com.common.www.controller.base.DefaultCrudController;
import com.common.www.service.district.ProvinceCityService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.Api;

@RestController
@CrossOrigin()
@Transactional
@Api(tags = "省市相关接口")
@RequestMapping(value = {"/mgt/province/city"})
public class MGTProvinceCityController extends DefaultCrudController<ProvinceCity, Long> {
    @Autowired
    private ProvinceCityService provinceCityService;

    @Override
    protected IBaseService getService() {
        return provinceCityService;
    }


}
